import {MenuProps} from 'antd'
// 类型断言
export interface ITheme{
    theme:"light"|"dark"
}

export type MenuItem = Required<MenuProps>['items'][number];

// 一个菜单项
export interface MenuOptions{
    path:string,
    title:string,
    icon?:string,
    isLink?:string,
    close?:string,
    children?:MenuOptions[]
}

export interface ITabs{
    label:string
    path:string
    key:string
    closable?:boolean
}